﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bill.BasDLL.ety
{
    public class etyCodeRef
    {

        private string item = "";
        public string ITEM
        {
            set { item = value; }
            get { return item; }
        }

        private string item_desc = "";
        public string ITEM_DESC
        {
            set { item_desc = value; }
            get { return item_desc; }
        }

        private string code = "";
        public string CODE
        {
            set { code = value; }
            get { return code; }
        }

        private string code_desc = "";
        public string CODE_DESC
        {
            set { code_desc = value; }
            get { return code_desc; }
        }

        private string Value = "";
        public string VALUE
        {
            set { Value = value; }
            get { return Value; }
        }

        private string avail_ind = "";
        public string AVAIL_IND
        {
            set { avail_ind = value; }
            get { return avail_ind; }
        }

        private string remark = "";
        public string REMARK
        {
            set { remark = value; }
            get { return remark; }
        }

        private string code_grp1 = "";
        public string CODE_GRP1
        {
            set { code_grp1 = value; }
            get { return code_grp1; }
        }

        private string code_grp2 = "";
        public string CODE_GRP2
        {
            set { code_grp2 = value; }
            get { return code_grp2; }
        }

        private string code_grp = "";
        public string CODE_GRP
        {
            set { code_grp = value; }
            get {
                if (code_grp.Trim() == "")
                    return code_grp1 + code_grp2 + code_grp3 + code_grp4 + code_grp5;
                else
                    return code_grp; 
            }
        }

        private string code_grp3 = "";
        public string CODE_GRP3
        {
            set { code_grp3 = value; }
            get { return code_grp3; }
        }

        private string code_grp4 = "";
        public string CODE_GRP4
        {
            set { code_grp4 = value; }
            get { return code_grp4; }
        }

        private string code_grp5 = "";
        public string CODE_GRP5
        {
            set { code_grp5 = value; }
            get { return code_grp5; }
        }

        private string result_ind = "";
        public string RESULT_IND
        {
            set { result_ind = value; }
            get { return result_ind; }
        }

        private string print_grp = "";
        public string PRINT_GRP
        {
            set { print_grp = value; }
            get { return print_grp; }
        }
    }
}
